/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

.showcase {
  width: 100%;
  margin: 0 auto;
}

.showcase-menu,
.showcase {
  min-width: 350px;
  max-width: 730px;
}

.showcase > header {
  position: fixed;
  top: 0;
  background-color: #fbfbfb;
  z-index: 100000;
  width: 100%;
  padding-bottom: 1em;
}

.showcase > header > h1,
.showcase > section > h1 {
  font-size: 2em;
  font-weight: bold;
  margin: .5em 0;
}

.showcase-menu > a {
  margin-right: .5em;
  padding: .4rem;
  margin-top: .2rem;
}

.showcase > section {
  position: relative;
  padding-top: 14em;
  clear: both;
}

.showcase > section > h1 {
  margin: 1em 0;
  border-bottom: 1px solid #aaa;
}

.showcase > section .comp {
  margin: 0 auto; /* width is usually set programmatically */
}

.showcase > section .comp.dashed {
  border: 1px dashed #ccc;
}

.showcase > section > .example {
  margin-bottom: 6em;
}

.showcase > section > h2 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 1.5em 0;
}

.showcase > section .example > h3 {
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px dashed #aaa;
  margin: 1em 0;
  text-align: left;
}

.showcase p.note {
  margin: 0;
  padding: 0;
  color: #666;
  font-style: italic;
}

.override-position * {
  /* Specific for toolbar component atm
   * disables position absolute so that the parent div can
   * compute the dimensions and prevent collapse */
  position: relative !important;
}

/* Just for the showcase to look sane */
.showcase .fx-embedded .local-stream {
  position: absolute;
}

.showcase p.note > strong {
  font-weight: bold;
}

/*
 * Switched to using height: 100% in standalone version
 * this mocks it for the ui so that the component has height
 * */
.standalone .video-layout-wrapper,
.standalone .remote_wrapper {
  min-height: 550px;
}

@media screen and (max-width:640px) {

  .standalone .local-stream {
    background-size: cover;
  }

  .standalone .local-stream,
  .conversation .media.nested .remote {
    background-size: cover;
    background-position: center;
  }

  .standalone .remote_wrapper {
    width: 100%;
    background-size: cover;
    background-position: center;
  }
}

.remote_wrapper {
  background-image: url("sample-img/video-screen-remote.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.local-stream {
  background-image: url("sample-img/video-screen-local.png");
  background-repeat: no-repeat;
}

  .local-stream.local:not(.local-stream-audio) {
    background-size: cover;
  }

.call-action-group .btn-group-chevron,
.call-action-group .btn-group {
  /* Prevent box overflow due to long string */
  max-width: 120px;
}

.conversation .media.nested .remote {
  /* Height of obsolute box covers media control buttons. UI showcase only.
   * When tokbox inserts the markup into the page the problem goes away */
  bottom: auto;
}

.standalone .ended-conversation .remote_wrapper,
.standalone .video-layout-wrapper {
  /* Removes the fake video image for ended conversations */
  background: none;
}
